<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="images/main.css" rel="stylesheet" type="text/css" />
<link  href="../css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../js/trim.js"></script>
<script language="javascript" type="text/javascript" src="../My97DatePicker/WdatePicker.js"></script>
<script type="text/javascript">
	function sub(){
		var upfile = document.getElementById("upfile");
		if(trim(upfile.value).length == 0){
			alert("请您选择文件，并注意格式。");
			upfile.focus();
		}else{
			document.forms["form"].submit();
		}
	}
</script>
</head>
<html>
<body onload="init();">
	<jsp:include page="right_top.jsp"></jsp:include>
	<!-- TOP START -->
	<div id="right_font">
		<img src="images/main_14.gif" /> 您现在所在的位置：首页 → 员工信息上传 → <span class="bfont">员工信息表格上传</span>
	</div>
	<!-- TOP END -->
	<hr>
	<br><br> 
	<table align="center">
	<form action="doUpload.jsp" method="post" enctype="multipart/form-data" name="form" id="form">
		<%-- 类型enctype用multipart/form-data，这样可以把文件中的数据作为流式数据上传，不管是什么文件类型，均可上传。--%> 
		<tr>&nbsp;&nbsp;&nbsp;&nbsp;</tr>
		<tr>
			<span class="STYLE1">请选择要导入数据库的员工Excel的文件（1、必须是Excel的模板文件填写后方能生效；2、使用英文文件名例如：User等。）</span> 
		</tr>
		<tr>&nbsp;&nbsp;&nbsp;&nbsp;</tr>
		<tr>
			<span class="STYLE1">
				<td><input type="file" name="upfile" id="upfile" size="80"></td>
				
				<td><input type="button" value="上传Excel员工数据" onclick="sub();"/></td>
			</span>
		</tr>
	</form>
	</table>
</body>
</html>